package com.five.bi.service.impl;

import com.five.bi.mapper.QueryDataMapper;
import com.five.bi.model.request.QueryDataRequest;
import com.five.bi.service.QueryDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class QueryDataServiceImpl implements QueryDataService {

    @Resource
    private QueryDataMapper queryDataMapper;

    @Override
    public List<Map<String, String>> queryDataInfo(QueryDataRequest queryDataRequest) {
        queryDataRequest.getSelectFields().forEach(vo -> {
            vo.build();
        });
        return queryDataMapper.queryDataInfo(queryDataRequest);
    }
}
